﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Foothill.Common
{
    public static class GlobalValues
    {
        // item "All" in ddlMake
        public static readonly int AllMakeId = 0;

        // item "Select One" in ddlMake
        public static readonly int IgnoreSelectedItemId = -1;

        // item "All" in ddlModel
        public static readonly int AllModelId = 0;

        // item "All" in ddlModel
        public static readonly int AllCityId = 0;

        public static readonly int DropdownMaxValue = 999999; // used as MAX value in price and kilometers dropdown

        public static readonly DateTime SmallDateTime_MinValue = Convert.ToDateTime("1/1/1900");

        public static readonly IDictionary<PriceRange, string> PriceRangeDict;

        public static readonly IDictionary<MileageRange, string> MileageRangeDict;

        static GlobalValues()
        {
            PriceRangeDict = new Dictionary<PriceRange, string>();

            PriceRangeDict.Add(PriceRange.Any, "不限");
            PriceRangeDict.Add(PriceRange.P5K, "5,000");
            PriceRangeDict.Add(PriceRange.P10K, "10,000");
            PriceRangeDict.Add(PriceRange.P20K, "20,000");
            PriceRangeDict.Add(PriceRange.P30K, "30,000");
            PriceRangeDict.Add(PriceRange.P50K, "50,000");
            PriceRangeDict.Add(PriceRange.P80K, "80,000");
            PriceRangeDict.Add(PriceRange.P100K, "100,000");
            PriceRangeDict.Add(PriceRange.P150K, "150,000");
            PriceRangeDict.Add(PriceRange.P200K, "200,000");

            MileageRangeDict = new Dictionary<MileageRange, string>();
            MileageRangeDict.Add(MileageRange.Any, "不限");
            MileageRangeDict.Add(MileageRange.LessThan5K, "5千以下");
            MileageRangeDict.Add(MileageRange.LessThan10K, "1万以下");
            MileageRangeDict.Add(MileageRange.LessThan20K, "2万以下");
            MileageRangeDict.Add(MileageRange.LessThan30K, "3万以下");
            MileageRangeDict.Add(MileageRange.LessThan50K, "5万以下");
            MileageRangeDict.Add(MileageRange.LessThan80K, "8万以下");
            MileageRangeDict.Add(MileageRange.LessThan100K, "10万以下");
        }
    }
}
